Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-4123: [Backport] Added /languages and /languages/{code} endpoints #107

Merged
merged 11 commits into from
Dec 5, 2023

Conversation

Steveb-p
Copy link
Contributor

@Steveb-p Steveb-p commented Nov 9, 2023

Question Answer
JIRA issue IBX-4123
Type bug/feature/improvement
Target version v3.3.0

Warning

When merging up, do not apply those changes. They already exist downstream.

Needed due to dependency in Ibexa Connect, as part of Content creation and other modules.

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)

TODO:

  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
@Steveb-p Steveb-p requested a review from a team November 9, 2023 13:10
@konradoboza konradoboza requested a review from a team November 9, 2023 13:13
Comment on lines 9 to 17
namespace EzSystems\EzPlatformRest\Server\Controller;

use eZ\Publish\API\Repository\LanguageService;
use eZ\Publish\API\Repository\Values\Content\Language as ApiLanguage;
use EzSystems\EzPlatformRest\Server\Controller as RestController;
use EzSystems\EzPlatformRest\Server\Values\LanguageList;
use Traversable;

final class Language extends RestController
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

legacy namespaces for new classes are technically not allowed after rebranding due to BC policy. I see 2 options here:
either use Ibexa namespace or make the class internal so we don't have to keep BC (we don't do it for controller classes anyway, but at least it would be more clear that way).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alongosz Replaced all new classes with new namespace in a48f66f.

Copy link

sonarcloud bot commented Nov 22, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mnocon mnocon self-assigned this Dec 5, 2023
Copy link
Member

@mnocon mnocon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with standalone API calls and with the Ibexa Connect v3 app, looks good!

@Steveb-p Steveb-p merged commit d289068 into 1.3 Dec 5, 2023
13 checks passed
@Steveb-p Steveb-p deleted the ibx-4123/backport branch December 5, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

7 participants